<!-- app/View/Users/add.ctp -->
<div class="users form">
<?php echo $this->Form->create('User');?>
    <fieldset>
        <legend><?php echo __('Cadastro de usuário'); ?></legend>
    <?php
        echo $this->Form->input('username',array('label' => 'Nome de usuário'));
        echo $this->Form->input('password',array('label' => 'Senha'));
		echo $this->Form->input('nickname',array('label' => 'Nickname'));
		echo $this->Form->input('email');
		
		if($isAdmin){
			$a = array('options' => array('admin' => 'Admin', 'author' => 'Author'));
		}
		else{
			$a = array('options' => array('author' => 'Author'));
		}
        
		echo $this->Form->input('role', $a);
    ?>
    </fieldset>
<?php echo $this->Form->end(__('Submit'));?>
</div>